Move definition of xc and xend to avoid confusing pylint.
authoremellor@ewan <emellor@ewan>
Sun, 18 Sep 2005 15:00:24 +0000 (16:00 +0100)
committeremellor@ewan <emellor@ewan>
Sun, 18 Sep 2005 15:00:24 +0000 (16:00 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index 8bc3d1a1c027385c576546cbee3d202d0fd208e0..9dc3bda8fb09cd4cd4f593e324650f143e61ffdf 100644 (file)
@@ -28,10 +28,10 @@ import time
 import threading
 import errno
 
-import xen.lowlevel.xc; xc = xen.lowlevel.xc.new()
+import xen.lowlevel.xc
 from xen.util.blkif import blkdev_uname_to_file
 
-from xen.xend.server import SrvDaemon; xend = SrvDaemon.instance()
+from xen.xend.server import SrvDaemon
 from xen.xend.server.channel import EventChannel
 
 from xen.xend import sxp
@@ -93,6 +93,12 @@ SIF_NET_BE_DOMAIN = (1<<5)
 SIF_TPM_BE_DOMAIN = (1<<7)
 
 
+xc = xen.lowlevel.xc.new()
+
+
+xend = SrvDaemon.instance()
+
+
 def domain_exists(name):
     # See comment in XendDomain constructor.
     xd = get_component('xen.xend.XendDomain')